package cate.game.activity.luckycharm.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBLuckyCharm;
import easy.java.dev.note.NoteField;

public class LuckyCharmActiveReq implements MsgInput {
    @NoteField("渠道 1 小游戏 2 h5/微端")
    public byte channel;
    @NoteField("是否激活")
    public boolean active;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getActivity().luckyCharm.active(channel, active);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBLuckyCharm.ACTIVE_REQ;
    }
}
